package com.lenovo.testreport.jenkins.model;

import java.io.Serializable;

/**
 * @author CJF
 * @date 2018/12/7
 */
public class Job implements Serializable {
    private String color;
    private String name;
    private String url;
    private String lastBuild;
    private String lastResult;
    private String lastSuccessfulBuild;
    private String lastFailedBuild;
    private String detail;
    private String inqueue;

    public String getInqueue() {
        return inqueue;
    }

    public void setInqueue(String inqueue) {
        this.inqueue = inqueue;
    }

    public Job(String color, String name, String url, String lastBuild, String lastResult, String lastSuccessfulBuild, String lastFailedBuild, String detail, String inqueue) {
        this.color = color;
        this.name = name;
        this.url = url;
        this.lastBuild = lastBuild;
        this.lastResult = lastResult;
        this.lastSuccessfulBuild = lastSuccessfulBuild;
        this.lastFailedBuild = lastFailedBuild;
        this.detail = detail;
        this.inqueue = inqueue;
    }

    @Override
    public String toString() {
        return "Job{" +
                "color='" + color + '\'' +
                ", name='" + name + '\'' +
                ", url='" + url + '\'' +
                ", lastBuild='" + lastBuild + '\'' +
                ", lastResult='" + lastResult + '\'' +
                ", lastSuccessfulBuild='" + lastSuccessfulBuild + '\'' +
                ", lastFailedBuild='" + lastFailedBuild + '\'' +
                ", detail='" + detail + '\'' +
                ", inqueue='" + inqueue + '\'' +
                '}';
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public Job() {
    }

    public String getLastSuccessfulBuild() {
        return lastSuccessfulBuild;
    }

    public void setLastSuccessfulBuild(String lastSuccessfulBuild) {
        this.lastSuccessfulBuild = lastSuccessfulBuild;
    }

    public String getLastFailedBuild() {
        return lastFailedBuild;
    }

    public void setLastFailedBuild(String lastFailedBuild) {
        this.lastFailedBuild = lastFailedBuild;
    }

    public String getLastBuild() {
        return lastBuild;
    }

    public void setLastBuild(String lastBuild) {
        this.lastBuild = lastBuild;
    }

    public String getLastResult() {
        return lastResult;
    }

    public void setLastResult(String lastResult) {
        this.lastResult = lastResult;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

}
